home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dirut / free19.zip / FREE.DOC < prev    next >
Text File  |  1991-05-03  |  6KB  |  144 lines

  1.  
  2. Program: Free.Exe version 1.9
  3.  
  4.  
  5. Syntax: Free [/d /f /i /h /n /r /?]
  6.  
  7.  
  8. Brief: Displays available and total drive space on all drives.
  9.  
  10.  
  11. Switches: 
  12.  
  13.     /d   - Display the drive assignments as full text rather than by letter.
  14.     /f   - Include Floppies A: and/or B:.
  15.     /i   - Display sector, cluster and usage information.
  16.     /h/? - Displays above information. 
  17.     /n   - Do not display ? code information.
  18.     /r   - Do not display drives that don't respond.
  19.     
  20.     /h/? switches will only display Help information. /f, /n  and /r can be 
  21.     used with any other switch. /d and /i are mutually exclusive. /d overrides 
  22.     /i so that if you use /d and /i, you will have full text.
  23.  
  24.  
  25. Explanation: Free checks each drive from A to Z and displays one of four
  26.     possible lines:
  27.  
  28.     1)  d:    available        total   t d:\directory
  29.         [d:]        - is the drive being checked.
  30.         [available] - Free Space.
  31.         [total]     - Total Space.
  32.         [t]         - Drive Type.
  33.                         ' ' for a local, joined or assigned drive.
  34.                         'b' for a Bernoulli drive.
  35.                         'e' for an external device (like a 3.5" external 
  36.                               floppy).
  37.                         'n' for a networked drive (only tested with IBM PC 
  38.                               Lan and 3Com 3+Share).
  39.                         's' for a substituted drive.
  40.                         'v' for a virtual disk (VDisk.Sys).
  41.                         '?' for any other drive.  If you encounter a '?'
  42.                               drive, please pass any information about it to
  43.                               me. I will send an updated copy to you after
  44.                               verification. You can turn off this information 
  45.                               by using the /n switch.
  46.         [directory] - Current Directory.
  47.  
  48.     2)  d:    available        total   t  uu%    cccc bytes    sss bytes
  49.         [d:]        - is the drive being checked.
  50.         [available] - Free Space.
  51.         [total]     - Total Space.
  52.         [t]         - Drive Type. (see above)
  53.         [uu]        - Percentage in use. 
  54.         [cccc]      - Number of bytes per cluster.
  55.         [sss]       - Number of bytes per sector.
  56.  
  57.     3) ->d<-                              [Network ]Drive not responding.
  58.         [->d<-]     - is the drive being checked.
  59.         [Network ]  - if the drive is a network link and is now unavailable, 
  60.                       you will have this added to the "Drive not responding" 
  61.                       message.
  62.  
  63.     4) d:    available        total     long drive type
  64.         [d:]              - is the drive being checked.
  65.         [available]       - Free Space.
  66.         [total]           - Total Space.
  67.         [long drive type] - Full text description of device.
  68.  
  69. Joined and Assigned drives display the same characteristics as the drive 
  70.     they came from. If you Assign to a Network drive, the Assigned drive will 
  71.     be displayed as a Network drive.
  72.  
  73. I originally decided to make sure it didn't run on any other version of Dos 
  74.     than 3.x but since there have been so many requests for an upgrade, I 
  75.     decided to modify this check. Now it will not work on any version of Dos 
  76.     older than 3.0. If you run it on any Dos other than 3.x, you may produce 
  77.     unpredictable results.
  78.  
  79.  
  80. Example 1: 
  81.  
  82. FREE v1.9 - Copyright 1990,1991 by Carl Schelin - All Rights Reserved
  83.  
  84. Drive   Available      Total       Current Directory
  85. ->A<-                              Drive not responding.
  86. ->B<-                              Drive not responding.
  87.   C:       464896     31768576     C:\DOS\BATCH
  88.   D:      1365504      1457664   e D:\
  89.   E:       612352      1042944   v E:\
  90.   F:      3805184     44503040   b F:\WINDOWS
  91. ->G<-                              Drive not responding.
  92.   L:      6813696     33462272   n L:\
  93.   M:      6813696     33462272   n M:\
  94.   N:      6813696     33462272   n N:\
  95.  
  96.  
  97. Example 2 (with /i switch):
  98.  
  99. FREE v1.9 - Copyright 1990,1991 by Carl Schelin - All Rights Reserved
  100.  
  101. Drive   Available      Total       Usage  Cluster Size  Sector Size
  102.   C:      5844992     33454080      83%    2048 bytes    512 bytes
  103.   D:       993280     33454080      98%    2048 bytes    512 bytes
  104.   E:       573440      6250496      91%    4096 bytes    512 bytes
  105.   L:       993280     33454080   s  98%    2048 bytes    512 bytes
  106.   M:       993280     33454080   s  98%    2048 bytes    512 bytes
  107.   U:      5844992     33454080   s  83%    2048 bytes    512 bytes
  108.  
  109.  
  110. Example 3 (with /f and /d switch):
  111.  
  112. FREE v1.9 - Copyright 1990,1991 by Carl Schelin - All Rights Reserved
  113.  
  114. Drive   Available      Total       Drive Assignment
  115. ->A<-                              Drive not responding.
  116.   C:      5844992     33454080     Local Drive
  117.   D:       993280     33454080     Local Drive
  118.   E:       573440      6250496     Local Drive
  119.   L:       993280     33454080     SUBST'd Drive
  120.   M:       993280     33454080     SUBST'd Drive
  121.   U:      5844992     33454080     SUBST'd Drive
  122.  
  123.  
  124. Note: Since I often move things from one drive to another, I always check to 
  125.     see how much space is left before hand.  I decided to create this utility 
  126.     to fix that and to tell me the current directory.  I like to know what the 
  127.     current directory is so I can copy to E: rather than E:\Advent\NH if E: is 
  128.     already pointing to the correct directory.
  129.  
  130. After I posted it to comp.binaries.ibm.pc, I received a number of inquiries 
  131.     about some modifications and some hints about how to check for subst'd,
  132.     network'd and so on drive types. 
  133.  
  134.  
  135. Plans: Possibly adding a switch later to allow you to show the actual path 
  136.     rather than the substituted or network path. 
  137.  
  138.  
  139. Author: Carl Schelin - (703) 659-9865 - tcs@mailer.jhuapl.edu
  140.  
  141.  
  142. Language: Borland C++ v2.00 (patched)
  143.  
  144.